﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Arith.Property
{
    class PropertyDemo1
    {
        public static void Main()
        {
            Student stud = new Student();
            //stud._roll=10;
            //stud._name = "Arun";
            stud.SetRoll(100);
            stud.SetName("Arun");
            //ShowStudent(stud._roll, stud._name);
            ShowStudent(stud);
            Console.WriteLine("Thank you...");
            Console.Read();
        }

        //public static void ShowStudent(int roll, string name)
        //{
        //    Console.WriteLine("Student Info.");
        //    Console.WriteLine("--------------------");
        //    Console.WriteLine("Roll No.  :" + roll);
        //    Console.WriteLine("Name      :" + name);
        //    Console.WriteLine("-------------------------");

        //}
        public static void ShowStudent(Student st)
        {
            Console.WriteLine("Student Info.");
            Console.WriteLine("--------------------");
            Console.WriteLine("Roll No.  :" +st.GetRoll());
            Console.WriteLine("Name      :" +st.GetName());
            Console.WriteLine("-------------------------");

        }
    }
}
